<template>
  <div class="top">
    <div class="content">
      <div class="left">
        <img src="../../assets/logo.jpg" alt="" />
        <div>尚医通 预约挂号平台</div>
      </div>

      <div class="right">
        <div class="help">帮助中心</div>
        <div class="login" @click="login">登录 / 注册</div>
      </div>
    </div>
  </div>
</template>

<script setup lang="ts">
import { ref } from 'vue'

const dialogVisible = ref(false)

const login = () => {
  dialogVisible.value = true
}
</script>

<style lang="scss" scoped>
.top {
  width: 100%;
  height: 3.676vw;
  box-shadow: 0 2px 10px rgb(0 0 0 / 5%);
  display: flex;
  justify-content: center;

  .content {
    width: 75vw; // 1440px/19.20
    height: 3.676vw;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0.525vw;

    .left {
      display: flex;
      align-items: center;
      img {
        width: 2.626vw;
        height: 2.626vw;
      }
      div {
        font-size: 20px;
        color: #55a6fe;
        margin-left: 10px;
      }
    }

    .right {
      display: flex;
      align-items: center;
      font-size: 18px;
      color: #818181;

      div {
        margin-right: 10px;
      }
    }
  }
}
</style>
